package com.gnerv.battle.boot.project.guard.business;

import com.gnerv.battle.boot.common.base.model.RestResult;
import com.gnerv.battle.boot.project.guard.model.dto.MonitorMiddlewareCreateDTO;
import com.gnerv.battle.boot.project.guard.model.dto.MonitorMiddlewareDTO;
import com.gnerv.battle.boot.project.guard.model.dto.MonitorMiddlewareUpdateDTO;

import java.util.List;

/**
 * @author ligen
 */
public interface MonitorMiddlewareBusiness {

    RestResult<Void> create(MonitorMiddlewareCreateDTO monitorMiddlewareCreateDTO);

    RestResult<Void> deleteByUkId(String ukId);

    RestResult<Void> updateByUkId(MonitorMiddlewareUpdateDTO monitorMiddlewareUpdateDTO);

    RestResult<MonitorMiddlewareDTO> selectByUkId(String ukId);

    RestResult<List<MonitorMiddlewareDTO>> listByName(String name, Integer page, Integer size);
}
